const { http } = uni.$u;
export const fetchLogin = (params, config = {}) =>
  http.post("/crm/customer/registerOrLogin", params, config);

export const fetchCustomerOpenId = (params, config = {}) =>
  http.post("/crm/customer/getOpenId", params, config);

export const fetchToken = (params, config = {}) =>
  http.post("/crm/merchant/login", params, config);

/**
 * 获取客户身份列表
 * @param params
 * @param config
 * @returns {*}
 */
export const fetchCustomerIdentityList = (params, config = {}) =>
  http.post("/crm/customerIdentity/getList", params, config);
